package com.wqz.pojo;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import static org.junit.Assert.*;

public class TestSpringTest {

    @Test
    public void show() {

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");

        TestSpring testSpring = (TestSpring) applicationContext.getBean("test");

        testSpring.show();

    }
}